import redis
#定义地址和端口
host = '39.106.231.220'
port = 6379
#建立redis连接
r = redis.Redis(host=host,port=port,password='123456')

# r.set('u'+'1'+'c'+'1','1')
# r.delete('u'+'1'+'c'+'1')
# print(r.get('u'+'1'+'c'+'1'))